package com.sea.supply.service;



import com.sea.supply.entity.WareDistribute;
import com.sea.supply.entity.WareProduce;
import org.apache.ibatis.annotations.Param;

import java.io.InputStream;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface WareDistributeService {
    /**
     * 新增收货记录
     * @param wareDistribute
     * @return
     */
    Integer save(WareDistribute wareDistribute);
    /**
     * 新增收货记录
     * @param wareProduce
     * @return
     */
    Integer save(WareProduce wareProduce);
    /**
     * 查询可接收数量
     * @param wareProduce
     * @return
     */
    WareDistribute findReceiveNumber(WareProduce wareProduce);

    /**
     * 更新
     * @param wareDistribute
     * @return
     */
    Integer usave(WareDistribute wareDistribute);

    Integer updateUseNumber(Integer useNumber,Integer id);

    List<WareDistribute> getDistributeNumber(String receiveSku,String receiveChannelName);

    WareDistribute findById(Integer id);

    List<WareDistribute> findByCnd(WareDistribute wareDistribute);

    WareDistribute findBySkuChannelNo(WareDistribute wareDistribute);

    List<WareDistribute> findByDistributeReadyUse(String receiveSku,String receiveChannelName);

    Integer updateReadyUseNumber(Integer useReadyNumber,Integer id);
}
